package com.ruoyi.nycbfx.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 能源单价维护对象 tb_nycbfx_nydjwh
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
public class TbNycbfxNydjwh extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 能源类型 */
    @Excel(name = "能源类型")
    private String nylx;

    /** 单价 */
    @Excel(name = "单价")
    private Long dj;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sj;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNylx(String nylx) 
    {
        this.nylx = nylx;
    }

    public String getNylx() 
    {
        return nylx;
    }
    public void setDj(Long dj) 
    {
        this.dj = dj;
    }

    public Long getDj() 
    {
        return dj;
    }
    public void setSj(Date sj) 
    {
        this.sj = sj;
    }

    public Date getSj() 
    {
        return sj;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nylx", getNylx())
            .append("dj", getDj())
            .append("sj", getSj())
            .toString();
    }
}
